package com.tm.order.service.impl;

import com.tm.order.controller.OrderController;
import com.tm.order.entity.OrderEntiy;
import com.tm.order.mapper.OrderMapper;
import com.tm.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderController orderController;

    @Autowired
    private OrderMapper orderMapper;

    public int createOrder(OrderEntiy orderEntiy) {
        return orderMapper.insert(orderEntiy);
    }
}
